<div class="create-account create-account-hook">
    <div class="title">
        当前位置：&nbsp;&nbsp;->&nbsp;组织机构&nbsp;->&nbsp;账户管理&nbsp;->&nbsp;<span class="active">平台创建账号</span>
    </div>
    <div class="inner-wrapper">
        <h2>新增账户</h2>
        <div class="form">
            <form class="form-horizontal form-hook" method="post">
                <div class="form-group">
                    <label class="col-sm-2 control-label">所属单位</label>
                    <div class="col-sm-10">
                        <input type="text" id="selectedCompany" name="selectedCompany" v-model="account.companyName"
                               class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">用户角色</label>
                    <div class="col-sm-10">
                        <select class="form-control role-hook" v-model="account.roleId" name="roleId">
                            <option value="">请选择角色</option>
                            <option v-for="(role,index) in roleList" :value="role.roleId"
                                    v-text="role.roleName"></option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">手机号码</label>
                    <div class="col-sm-10">
                        <input type="text" name="mobile" class="form-control"
                               v-model="account.mobile">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">电子邮箱</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="email"
                               v-model="account.email">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">密码</label>
                    <div class="col-sm-10">
                        <input type="password" class="form-control" name="password" id="equalToPassowrd"
                               v-model="account.password">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">确定密码</label>
                    <div class="col-sm-10">
                        <input type="password" class="form-control" name="confirmPassword"
                               v-model="account.confirmPassword">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">用户姓名</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="userName" v-model="account.userName">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">性别</label>
                    <div class="col-sm-10">
                        <div class="radio">
                            <label>
                                <input type="radio" name="gender" value="0"
                                       @click="account.gender = 0"
                                       :checked="account.gender === 0"><span>男</span>
                            </label>
                            <label>
                                <input type="radio" name="gender" value="1"
                                       @click="account.gender = 1"
                                       :checked="account.gender === 1"><span>女</span>
                            </label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-default">保存</button>
                        <span class="interval-lg"></span>
                        <button type="submit" class="btn btn-gray-sm" @click.stop="goBack()">返回</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript" src="js/back/organization/account/platform-create-account.js" custom></script>


































